import MySQLdb
from DBUtils.PooledDB import PooledDB
pool = PooledDB(MySQLdb,10,host='localhost',user='root',passwd='123456',db='xtsns',port=3306)

def execSQL(sql):
	conn = pool.connection()
	cur=conn.cursor()
	r=cur.execute(sql)
	r=cur.fetchall()
	cur.close()
	conn.close()